#include <iostream>
#include <cstdio>
#include <cmath> 
using namespace std;

int n;
double d;

typedef long long LL;

LL fpow(int a,int n){
  LL ret = 1;
  while(n){
    if(n & 1) ret *= a;
    a *= a;
    n >>= 1;
  }
  return ret;
}

int main()
{
  cin >> n >> d;
  printf("%.0f",d*fpow(2,n));
  return 0;
}
